Linux portduino arch#1137
Conversation
|
Nice! I look forward to this! |
| #if defined(NRF52_PLATFORM) | ||
| return _fs->open(fname, FILE_O_WRITE); | ||
| #elif defined(RP2040_PLATFORM) | ||
| #elif defined(RP2040_PLATFORM) || defined(ARCH_PORTDUINO) |
There was a problem hiding this comment.
is it maybe time to move fs access either to the board abstraction, or to its own abstraction so we can avoid all of the platform checks in the main code? @ripplebiz ?
There was a problem hiding this comment.
Also have a look at this one: https://github.com/meshcore-dev/MeshCore/pull/1137/files/53d53fbb34f578b1bbcdfa86a3b4f8d9d8b3eb16#diff-37ca67c35b6bde867acedc3db6bb9eab58c5533e69de348a1688383af4f1645fR67
I added config to linux board. It would be useful to have config in any board. Currently examples are still using defines for node name, position, etc.
I didn't touch it because it would be rude to alter so many files in the first PR ;)
|
|
||
| void MyMesh::dumpLogFile() { | ||
| #if defined(RP2040_PLATFORM) | ||
| #if defined(RP2040_PLATFORM) || defined(ARCH_PORTDUINO) |
There was a problem hiding this comment.
nit: can we name this PORTDUINO_PLATFORM to be more in line with the other defines?
|
Hey, this is great work! I have a Raspberry Pi 4B with a Waveshare LoRa hat. I tried to use your code to port over the "known working" config from Meshtastic but I get the same error. I'll take a look. I really would love to get Meshcore working on native Linux devices. Edit: I got it to work with my LoRa hat. It just needed "more" configuration. Please take a lookg @ggodlewski ggodlewski#1 |
73c18ea to
55e422f
Compare
50f4ed4 to
f21cf85
Compare
|
@l5yth thanks, I think now I know why performance of my sx1262 is so low. |
|
LGTM on Waveshare LoRa hat |
Cisien
left a comment
There was a problem hiding this comment.
I'd still like to get feedback from @ripplebiz about abstracting storage into the board config to avoid all of the little edits that need to be made everywhere, but that doesn't need to be a change that's tackled for this. I think it's fine as-is, but this is just highlighting some debt this project has.
|
Tested (PR head, unmerged) on a Nebra Outdoor Miner with the wio sx1262 breadboard setup documented at https://helium-repurposed.deobfuscated.org/Miners/Nebra%20Outdoor . Repeats just fine! I hope somebody does companion next! |
|
@Habbie it should be trivial, just copy/paste few lines from router. |
This PR allow to run MC on rpi zero 2w, running debian 13.
See https://github.com/ggodlewski/MeshCore/blob/linux/variants/linux/README.md for instruction and remarks.
I have RPI with POW + 2 * SX1262 running both MC and MT at the same time.
Resolves: #619